<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Getting Started: Serving Web Content</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script type="text/javascript" src="/static/jquery/jquery-1.8.3.js" ></script>
</head>
<body>
${name}
<button onclick="test()">onclick</button>
<div> jsp/hello.html </div>
<script type="text/javascript">
	function test(){
		console.log("------***-----")
		$.ajax({
			//url: '/test/json',
			url: '/test/json2',
			type: 'GET',
			//dataType: 'json',
			success: function(res){
				console.log("-----------")
				console.log("res***********"+res);
				console.log("res"+JSON.stringify(res));
			}
		});
	}
</script>
</body>
</html>